package com.geralt.im.client;

import java.awt.List;
import java.io.IOException;
import java.io.ObjectOutputStream;
import java.io.OutputStream;
import java.net.Socket;
import java.net.UnknownHostException;

import com.geralt.im.protocol.Request;

public class IMClient {
	
	ClientReaderRunnable clientRunner;
	public static boolean flag =true;
	public Socket socket;
	public static List userlist = null;
	
	public IMClient(Socket socket){
		this.socket = socket;
		clientRunner = JsonClientThread.getInstance(socket);
	}
	
	
	public void start() {
		new Thread(clientRunner).start();
	}
	public ClientReaderRunnable getClientRunner() {
		return clientRunner;
	}
	public void setClientRunner(ClientReaderRunnable clientRunner) {
		this.clientRunner = clientRunner;
	}
	
	
}
